/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bean;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author luis
 */
public class Evento implements Serializable {
    
    public int cod;
    public String descricao;
    public Date dt;
    public Usuario codusr;
    
    public Evento() {
    }

    public Evento(int cod){
        this.cod=cod;
    }
    
    public Evento(int cod, String descricao, Date dt, Usuario codusr) {
        this.cod = cod;
        this.descricao = descricao;
        this.dt = dt;
        this.codusr = codusr;
    }

    public int getCod() {
        return cod;
    }

    public void setCod(int cod) {
        this.cod = cod;
    }

    public String getDescricao() {
        return descricao;
    }

    public void setDescricao(String descricao) {
        this.descricao = descricao;
    }

    public Date getDt() {
        return dt;
    }

    public void setDt(Date dt) {
        this.dt = dt;
    }

    public Usuario getCodusr() {
        return codusr;
    }

    public void setCodusr(Usuario codusr) {
        this.codusr = codusr;
    }

    
    
    @Override
    public String toString() {
        return "Evento{" + "descricao=" + descricao + '}';
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 97 * hash + this.cod;
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Evento other = (Evento) obj;
        if (this.cod != other.cod) {
            return false;
        }
        return true;
    }
}
